﻿@using System.Web.Optimization
@using BootstrapSupport
@using NavigationRoutes
<!DOCTYPE html>

<html lang="en">

<head>

    <meta charset="utf-8">

    <title>@ViewBag.Title</title>

    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <link href="@Styles.Url("~/Content/3G.css")" rel="stylesheet"/>

    @RenderSection("head", false)
    @Html.Partial("_html5shiv")
</head>

<body>

<nav class="navbar navbar-inverse navbar-fixed-top" role="navigation">

    <div class="nav navbar-nav">

        <ul class="nav navbar-nav">

            <li class="active">
                <a href="/">首页</a>
            </li>

            @foreach (var property in Model.TopClasses)
            {
                <li>
                    <a href="@Url.Action("Class", new {CategoryId = property.ID, PageNo = 1})">@property.CategoryName</a>
                </li>
            }


        </ul>

        <nav class="container">

            <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">

                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </a>


            <div class="nav-collapse collapse">

                @Html.Navigation()
            </div>

        </nav>

    </div>

</nav>

<div class="container">

    @Html.Partial("_alerts")
    @Html.Partial("_validationSummary")
    @RenderBody()

    <hr>

    <footer>

        <p>&copy; Company @DateTime.Now.ToString("yyyy")</p>

    </footer>

</div>

@Scripts.Render("~/3G.js")
@RenderSection("Scripts", false)
</body>

</html>